<h1>slotsDemo</h1>

<ul>
<li> <a href="#1">Code</a>
<ul>
<li> <a href="#2">Uses</a>
<li> <a href="#3">Main</a>
</ul>
<li> <a href="#4">Author</a>
</ul>
<p>
A small program to demonstrate <em>slots</em>.
</p>
<a name="1"></a><h2>Code</h2>

<a name="2"></a><h3>Uses</h3>
<p>
<a href="?slots">slots</a> <a href="?myrss">myrss</a> <a href="?anyStrings">anyStrings</a> 
</p>
<a name="3"></a><h3>Main</h3>
<pre>
 function demoSlots(     get, data,frame1, slots1) {
    get    = "wget -q -O - "
    data   = "http://knit.googlecode.com/svn/branches/0.2/quill/etc/tests/" 
    frame1 = get data "frame1.txt"
    slots1 = get data "slots1.txt"
    slots(slots1,frame1)
 }
 function slotsPlugIns(string,values,      tmp) {   
    split(string,tmp,";")
    if (tmp[1]=="rss")
       return myrss(tmp[2],tmp[3])
    if (tmp[1]="any")
        return anyStrings(values[tmp[2]],tmp[3],5)
    barph("(" string ") ???") 
 }
</pre>
<a name="4"></a><h2>Author</h2>
<p>
by Tim Menzies
